#pragma once
#include "HtmlEditCtrlEx.h"

// CDlgPreviewHTML dialog

class CDlgPreviewHTML : public CDialogEx
{
	DECLARE_DYNAMIC(CDlgPreviewHTML)

public:
	CDlgPreviewHTML(CWnd* pParent = NULL);   // standard constructor
	virtual ~CDlgPreviewHTML();

	virtual BOOL OnInitDialog();
	virtual void OnOK();
	virtual void OnCancel();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnGetMinMaxInfo(MINMAXINFO* lpMMI);
	afx_msg void OnBnClickedButtonBold();
	afx_msg void OnBnClickedButtonItalic();
	afx_msg void OnBnClickedButtonColor();
	afx_msg void OnBnClickedButtonUndo();
	afx_msg void OnBnClickedButtonUnlink();

// Dialog Data
	enum { IDD = IDD_DIALOG_PREVIEW_HTML };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()

public:
	BOOL SizeDialog();
	BOOL SetSelection(CString szText);
	void EnableButtons(BOOL bEnable=TRUE);

public:
	BOOL m_bSend;
	BOOL m_bPrint;
	BOOL m_bPrintPreview;
	BOOL m_bPromptPrinter;
	CString m_szSubject;
	CString m_szHTML;
	CHtmlEditCtrlEx m_ctrlEditHTML;

	CMFCButton m_btnBold;
	CMFCButton m_btnItalic;
	CMFCButton m_btnColor;
	CMFCButton m_btnUndo;
	CMFCButton m_btnUnlink;
};
